const getters = {
    token: (state: any) => state.user.token,
    name: (state: any) => state.user.userInfo.username, // 建立用户名称的映射
    userId: (state: any) => state.user.userInfo.userId // 建立用户id的映射
}

export default getters